package com.iflytek.sbd.po;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @program: myes
 * @description:
 * @author: 陈英俊
 * @create: 2021-09-08 16:08
 */
@Data
@Document(indexName = "user")// 建议索引先建立好,这样es就不要使用默认的设置去设置字段的类型了
public class User implements Serializable {

    private String id;

    private String name;

    private Integer age;

    private String address;

    private String weapon;
}
